<template>
    <div>
        <mt-cell v-bind:title="key" v-for="val,key in night" v-bind:key="val.id">
            <p>{{val}}</p>
            <!-- <mt-badge type="success">{{val.msg}}</mt-badge> -->
        </mt-cell>
    </div>
</template>

<script>
export default {
    name: 'QueryHeal',
    data() {
        return {
            night: {}
        }
    },
    created() {
        fetch(this.url+"/user/nightinfo",{
            credentials: 'include',
            method: 'POST'
        }).then((res)=>{return res.text()})
        .then((value)=>{
            value = JSON.parse(value);
            let night = JSON.parse(value["data"][0].night);
            this.night = night;
        }).catch(function(err) {
            console.error(err);
        });
    }
}
</script>

<style>

</style>